<form id="pagerForm" action="jms/report" onsubmit="return navTabSearch(this)" method="post">
    <input type="hidden" name="pageNum" value="${(pager.pageNumber)!}" />
    <input type="hidden" name="numPerPage" value="${(pager.pageSize)!}" />
</form>
<div class="pageHeader">

    <form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="jms/report" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>

                    <td>
                        <label>客户名称：</label>
                        <select name="demand.cusName" class="combox">
                            <option value="">---请选择---</option>
                            <#list customerList as s>
                                <option value="${(s.name)!}" <#if (cusName)?? && cusName==s.name> selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>
                    </td>
                    <td>
                        <label>区县：</label>
                        <select name="demand.homeCounty" class="combox">
                            <option value="">---请选择---</option>
                            <#list homeCountyList as s>
                                <option value="${(s.name)!}" <#if (homeCounty)?? && homeCounty==s.name>selected="selected"</#if>>${(s.name)!}</option>
                            </#list>
                        </select>
                    </td>


                </tr>

                <tr>
                    <td>
                        <label>需求名称：</label>
                        <input type="text" size="20" name="demand.name" value="${(name)!}" />
                    </td>
                    <td>
                        <label>CRM需求编号：</label>
                        <input type="text" size="20" name="demand.crmid" value="${(crmid)!}" />
                    </td>
                    <td>
                        <div class="button"><div class="buttonContent"><button type="submit">查询</button></div></div>
                    </td>
                </tr>


            </table>
        </div>
    </form>
</div>

<div class="pageContent" style="padding:0px">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="jms/report/imp" width="450" height="360" target="dialog" mask="true"><span>数据导入</span></a></li>
            <li class="line">line</li>
            <li><a class="delete" href="jms/report/delete"  target="selectedTodo" rel="ids"  title="确认删除？"><span>删除</span></a></li>
            <li class="line">line</li>
            <li class=""><a class="icon" href="jms/report/export" target="dwzExport" targettype="navTab" title="实要导出这些记录吗?"><span>统计报表导出</span></a></li>

        </ul>
    </div>


    <table class="table" layoutH="139">
        <thead>
        <tr>
            <th width="60" align="left"><input type="checkbox" group="ids" class="checkboxCtrl"/>序号</th>
            <th width="60" align="center">区县</th>
            <th width="60" align="center">客户名称</th>
            <th width="160" align="left">需求名称</th>
            <th width="140">需求编号</th>
            <th width="140">订单状态</th>
            <th width="80">场景划分</th>
            <th width="100" align="center">交付时间</th>
            <th width="80">经度</th>
            <th width="80">纬度</th>
            <th width="200" align="center">地址</th>
            <th width="100" align="center">起租时间</th>
            <th width="100" align="center">更新时间</th>
            <th width="100" align="center">备注</th>

        </tr>
        </thead>
        <tbody>
        <#list pager.list as demand>
            <tr target="sid_obj" rel="${(demand.id)!}" ondblclick="migr.baseMoudleDblick(this)">
                <td align="left">
                    <input name="ids" type="checkbox" value="${(demand.id)!}"/>
                    ${demand_index + 1}
                </td>
                <td>${(demand.homeCounty)!} </td>
                <td>${(demand.cusName)!} </td>
                <td>${(demand.name)!}</td>
                <td>${(demand.crmid)!}</td>
                <td>${(demand.statusName)!}</td>
                <td>${(demand.scene)!}</td>
                <td>${(demand.submitDate?string("yyyy-MM-dd"))!} </td>
                <td>${(demand.longitude)!}</td>
                <td>${(demand.latitude)!}</td>
                <td>${(demand.addr)!}</td>
                <td>${(demand.rentDate?string("yyyy-MM-dd"))!} </td>
                <td>${(demand.modifyDate?string("yyyy-MM-dd"))!} </td>
                <td>${(demand.memo)!} </td>
            </tr>
        </#list>
        </tbody>
    </table>

    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" <#if pager.pageSize == 20> selected</#if>>20</option>
                <option value="50" <#if pager.pageSize == 50> selected</#if>>50</option>
                <option value="100"<#if pager.pageSize == 100> selected</#if>>100</option>
                <option value="200"<#if pager.pageSize == 200> selected</#if>>200</option>
            </select>
            <span>条，共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
    </div>


</div>

